package com.eight.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("user")
@ApiModel(value = "用户",description = "用户信息")
public class User {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户编号",name = "uid")
    private Integer uid;
    @ApiModelProperty(value = "用户名",name = "username")
    private String username;
    @ApiModelProperty(value = "用户密码",name = "password")
    private String password;
    @ApiModelProperty(value = "电话号码",name = "usertel")
    private String usertel;
    @ApiModelProperty(value = "用户邮箱",name = "useremail")
    private String useremail;
    @ApiModelProperty(value = "用户头像",name = "userpic")
    private String userpic;
    @TableField(exist = false)
    //这里表示非数据库字段
    @ApiModelProperty(value = "邮箱验证码",name = "checkcode")
    private String checkcode;
}
